Changed formatting to be compatible with psr + added namespace to Curl class