Changed directory structure, added tests, fixed encoding issue.
Configured Travis CI.