use iopath.h for file system separators
use const modifier where appropriate
cleanup prototypes