adding composer and autoload, minor update to traits sample