Did a bunch of work on refactoring. Rewrote code structure, but some bugs remain, so POS is not currently working properly.