Lots of bug fixed, documented some new problems.