Added post and comment parsing. Refactored code.