Few more bugs fixed. java docs completed.