Added autoloader and adjusted examples to use it