add missing trig functions
more file io and lseek support