Fix version.
API changes: rename first/start to lower and last/end to upper to conform to PostgreSQL.
Update documentation to reflect API changes.
Update merge function, add more documentation.