Added -o output path
Fixed relative paths