added integrator, refactored connected code
deleted unused files