Refactored the dodgy getSize code. Thanks codeReview
Cleaned up some files and added to the repo