Added alertCS() function

Also changed all error message outputs to have an | (pipe) at the end of
the string, for use with this function.