The voting process was not hacked, imo. I think both parties got their info hacked to some degree. I think Putin then chose Trump as the weak simpleton he could most easily handle and thus allowed for the leak of the DNC emails. Again, this is just opinion.
As dax has pointed out many times, Putin was wrong and Trump is not going to lift any sanctions or cede back the compounds as Putin expected he would. Trump is going to be firm with Russia as Obama should have been. Putin made an error in judging Donald as an easily manipulated doofus.