fixed the saveram mode bug, checkcoll.py works well now, but I am going to transform it into a python package