fix if using include
vs.php functionality

static test sql-table corrected
minor doc. error
vote code generation fixes