Some memory-related fixes in DTCrowd.
Proper code formatting and variable naming.
Added demo.