Refactor code and add two views for data entry and viewing
Added ratchet, accounting