[TASK] optimized autoloader and added unregisterAutoloader function.