fix bug saving active months
setup logging config and error logger, fixes #3