Changed structure, added Output Utils, and sorting functionality