Fixed most issues on the issue tracker.