Refactor and add an autoloader class to make codes neater

Signed-off-by: Chan Jun Wei <chanjunweimy@gmail.com>