Fix jsHint errors
Improving network commands
Improve condition for storage
Apply code review
Merge pull request #1 from andrerod/network

Network improvements