FIXES Pf use; FIXES kBase > 1-Td check; ADDS error handling to shiny app