use root instead of web directory
renamed var names for root instead of web directory
better exceptions with full qualified class name