Fixed misc bugs, added CodeHelper.java, for helpful methods.