remove debugging code
parse flags
add basic logging