added more doxygen and inline comments
added doxygen and inline comments to iface.c and iface.h