added new *.py files - related to cluster, model building, residual calculation and error detection
added new file - main.py