README updated. New tests added. lock implemented with fcntl POSIX.