Avoid global variables, use faster loops
Add ability to provied own endpoint
Merge pull request #5 from k-nut/cleanup

Cleanup and own endpoint