Fixed newline bug, added minified version of api