added hill climbing option
minor changes