Code tidy

Move files to separate folders for UI/Logic/Data Access.
InputData class added to encapsulate the input data and actions on it.