Clean up some code, add better docstrings, remove messages for part and quit

Will re-implement the part and quit messages later.