Added some sorting to the paths
Worked out some bugs.
* TODO: work on expense logic