jasmine testing, refactored and modularized
Added some tests and fixed some input checking
Removed some files and added more tests
Merge branch 'letsrefactor'
refactoring