Added basic mafalda loading support

Added basic input support, with a few utilities and an example.