Added pool processing and a log capability

Dynamic mix pool processing now implemented
Very basic logging added