implemented all missing funktions, start with debugging