cleaning up indentations, adding license, removing unneccessary code