Completed console

Console interface completed; additional tests added for patterns