Added comments and fixed a bug with hybi decode