Bug fixes and added a rudimentary dialog system.