added api_main.m

Additional API documentation via doxygen.