changed default id for no assignment from 0 to None
added a markdown export funtion and made module more self-contained