fixed namespaced classes generation and updated the docs