Library switch, clean up, more tests

Requests library was changed to fetch library
More tests added for better development
Minor bugfixes
Clean up