Implemented threaded consumer/producer

finished out the consumer and producer code