fixed minor defects
fine tuning. fixed some minor issues