Some cleanups of raw reversed code to avoid some bad memory reads and clarify code.
updating core for merge
updating with master
Merge pull request #16 from samdmarshall/gwynne/cleanups

Some cleanups of raw reversed code to avoid some bad memory reads and clarify code