add documents() method
move method & function docs before spec