Document functions in interface.h

Add Doxygen documentation strings to interface.h.

Signed-off-by: Rupert Muchembled <rupert@rmuch.net>
Handle invalid command line arguments

Write an error when an invalid argument is provided.

Signed-off-by: Rupert Muchembled <rupert@rmuch.net>