cleaned up code, started implementing iostream and more.