Updated CHANGES.txt and fixed minor problems