Replaced event and string queues with a generic implementation. Fixed 
console to mimic cmd prompt more accurately.