Refactored the "rew" function for readability and maintainability.
Fixed "dots" function bug where supplying an option to bypass the options prompt would throw an error.

* This happened due to the fact that a "break" statement was being used outside of a while loop.
* Fixed error where supplying a bogus option would cause the command prompt to hang indefinitely.