Updated terminal to v0.7.2-beta

cleaned up code
cleaned up comments