fixed some logic and added a printer for the default options