Cleaned up backend. Also cleaned up conversion. Separated scripts into packages.