Reliable handshaking, numerous bigfixes

Deleted outdated code & simplified stuff