Got the link status working

Changes made:
- Link status box works, matches the acceptance of a connection
- Added a generic error function in tools
- Moved print message inside the message parsing