Fixed most bugs. Division & error check buggy