minor fixes to comsec module main for testing.