pretty printing
moved functions into a separate file functions.R
changed ui