CHG: svn sync - fixed some bugs and updated the manuals