v0.5 All API functions implemented.

Finished implementing API functions.  TODO: Flash target is broken.