Further updated readme.md
moved logic to appropriate files
fixed path on require