Added history compression

Also, tested history entries. They appear to be working.