Merge pull request #2 from AlexandreBeaulne/refactor

Refactor
removed trailing whitespace
made init() function of gen_server molderl_stream more robust to connection failure