Reformatted code
Adopted func_num_args() and func_get_arg(0) instead of using func_get_args() all the time
Switched to PSR-4 autoloading