Created MAFfile object to handle reading, added convenience dirname lib