refactored doc files and setup to add nose