Debug / Mult update / functionssorted

Mult was rewritten, debug statements were added for testing, and the functions are now sorted