Refactoring to get to base level of functionality
Added travis build config.