Minor Changes

Added a flush method for user input, also fixed some formatting.