Updated functions
Merge branch 'master' of https://github.com/wpeterman/ResistanceOptimization