bunch of refactoring.
- moved some methods to a module.
- bumped version to 0.1