cleanup code and delete debug files