Added latch objects to gpr, prototype impl for fetch
Added prototype implementation for gpr_addi and gpr_decode
Fixed compilation bug