more bug fixes, added test file, lowered minimum requirements for java