Small changes

- made wrap_md non global
- made self.isRGB accessible by user
- now a sensible error is raised when wrong number of arguments are
given for metadataretrieve functions
- got rid of self._jmd
- replaced lambda function with named function for clarity
- added get_index(z, c, t) function, for use with metadataretrieve
functions