Added some comments to better explain my code.

Also added in a few simple api call functions.

Signed-off-by: Brandon Ingalls <blingall@mtu.edu>