compiled without linking errors

still missing iv write file