Refactored to multiple files and added skeleton of transducer
conversion.