Update phpDocs, fix _wiki, removed unused globals var declarations
fix phpdocs, remove unused global declarations, define variables