Fixed a bug in argument handling
Added docs for path type