Minor refactoring

Add beginnings of Constants class
Add some comments
Extract some helper methods
added Source class
changed String source to Source source
Source work
cleanup