Splitting library from demo code
Refactored example server working correctly
Making the env example more clear