start: Update copyright header
start: clean logic, use getopts
start: remove unused/dead code
start: add log function
start: check parameters