code refactoring - adding small helpful functions to replace repeatable code
added nic_type option to allow change types of networking hardware
change function definition to C-like http://tldp.org/LDP/abs/html/functions.html
split ssh_exec function to smaller one
update docs