fix dialyzer warnings
mark some variables with an _
run ct tests