refactor class structure and add documentation in README
Merge pull request #43 from nuest/master

Merge with latest updates from nuest/master