New fixes for flask-weirds lib

* skipping empty lines
* explaining what happens in code by comments
* updating tests