Added more documentation and a goodbye message.