Updated return values for methods with no return statement
Added lodash as a dependency
Refactored post generation logic