Fixed the textarea selection and added some snippets