not fully functioning implementation of MIDA 0.2.0
minor edits
various improvements