Refactored core functionality to separate class. Included in project via link to file system in preparation for creation of Android project