added case for empty string
made an infinite loop
improved print functions
added a new method
no error now outputs feedback