updated class to work with composer correctly.

namespace will need updating