Added alert message function, fixes #19