Add input checks, show summary in reply and PEP8 fixes