refactored into modules, added private method, and added first documentation
Merge pull request #1 from gerb030/refactored

refactored into modules, added private method, and added first documenta...