changed compliance to java 1.6

also did more dimension stuff