add checks for opening files
Merge branch 'master' of git://github.com/StructuralBioinformaticsLab/libmol