More formatting and javadocs. Added mock producer.