Rewritten with Composer

Includes an awesome error-handler!