Add exception
Add autoloader function
Move exception throw to function
Start using namespace