Removes newline from prompt, added quit and refresh, added main loop