Add support for length function, update README