Added date command. Minor bug fixes and improvements.