Version 1.1

Just cleaned up the decode algorithm and simplified it.