add jansi logging

also did a little formatting / cleanup