Included EventListeners for new NetConnections

+ Included a verification to check if the NetConnection is ready before using it
+ Fixed code indentation