Fixed missing content when no meta in .md file

Also refactored code + renamed main class to Pancake.