simple bugfix,
linux portability is added
output file error is fixed