Created Pad class
Major refactoring. Corrected some MVC mistakes.