Merge pull request #12 from thibhul/master

Fixed missing commas
Reorganize sockets and mutex on stopped boolean