fixed HG init errors and minor typos