finished loction parser by adding getHighestBlockAt and doing some minor refactoring.