Moved monitoring of standard input to seperate listener (controller) class