file lock implemented with fcntl, need to update documentation.