removed BOPS dependancy since 'native-buffer-browserify' came out and you can use native buffers in node and in browser. Slight refactor to reduce long lines and add whitespace for readability.