added sphinx, work on learnscripts.py, some fine tuning