Cleaned up MultiDict implementation and added docstrings