Updated documentation and added bugs and todo's.