Fixed file permissions & improved autoloader