simple refactored and documentation update
Merge pull request #2 from nyamsprod/dev

simple refactored and documentation update