moved DSConsole functions to ConsoleLibrary, added readline function