Debugged

Removed errors to get the first version running. No complex testing yet.