changed: better error message
added: constant 'SEEK_SET' for seek call