Cleaned up terminal output and fixed readWrite