Clean up and make grunt working again. 

Now everything is working again. 
We need to write a lot of test cases for decode!
Will do a npm update if this is merged.