fixed small bug in a code and added functionality to add CHGCAR files