Small changes and fixes to finish the mediafile app for now.