Commands implemented better, fixed bug with regex for title spanning newline.