Cleaned code, updated testing. Streams removed as there are not required for browserify.