Separated into modules and cleaned up. Theres an issue with the sorting example not maintaining constant list size...