Made into a package

Now an option to have decoded data returned or raw data from server.