updating target dir and adding autoload
fixed namespacing issue