Updated with changes from AM

- removed return None
- better handling of tuples
- ref/alt in hdf5 uppercase