Fixed some random things, also added a getTargetBlock method.

resolves #13