added delete trailing whitespace and some play mode snippets