Adds md device support, improved file handling, and PEP8 fixes
Merge pull request #147 from willroberts/master

Adds md device support, improved file handling, and PEP8 fixes