Update comper.py

Simplified structure
Made it more functional