Some fixes and documentation added.