+attempt to add a progress bar
+rewritten all main code
exports added
+tests working