Refactored the activity preview logic
Fixed up _extractActivityEntities documentation
Followed up on activity preview item review
Added semi-colon after closing brace of function declaration