changed: cleaned up code

did code cleanups
added: TestApp

added: TestApp to verify library functions
fixed: formatting error
cleaned up folder structure