Made autoload class more flexible, so that functions can be organized in subdirectories if needed.