Fix import bugs and surpress lengthy output
Add func printMatch