Added composer and autoload support + fixed deprications