refactoring markdown module
implementing markdown module