cleaned up and reformed library stub.

removed redundancy and moved the get() around.