Added comments for checkObjective & genMap methods.