adding more documentation to each function + refactoring function variables (uhh, that was terrible)
updating the minified version