Update code style guidlines
Mark test environment with a boolean
Code style
Add a network status monitoring, with corresponding tests