add initial main loop
some error checking, cleanup

Signed-off-by: Joel Anna <annajoel@pdx.edu>
Added wrapper functions from ORInterfaceAPI
Finished adding the python wrappers for ORInterfaceAPI