fixed open file typo
fixed open file typo
added to md generate function