added .gitignore file to avoid unintended files showing up
made code more pythonic by using proper python construct such as list comprehensions and generator expressions.
There are places that can be improved as well, since I do not understand the full spec. of the markup language as there is no documentation about that, and due to the fact that I could not run the program to test, so I did not touch on those parts. I will address those in separate issue.
There are places that can be improved as well, since I do not understand the full spec. of the markup language as there is no documentation about that, and due to the fact that I could not run the program to test, so I did not touch on those parts. I will address those in separate issue.