Refactored code for readability, removed unneeded routes and sorted transaction list by date (user customization coming later).