Fixed memory issues. Fixed title of section in sample.