Use booleans and error codes to indicate succes/failure (instead of exceptions).
Fix compilation when no output path parameter given.