added _qgrams_lists function
fixed various errors, mostly syntax & redundancy
added .pyc & .settings/