changed api doc to API-Reference and tweaked Young Person's guide to use blocks variable
improved require function