added encryption function
ignored idiotic files
changed offset to accept arguments