improved documentation
added size test