Refactor GeneallogicalMap class. And abstract fileutil class.