Various fixes

Should we have punctuation in the end of the error messages?

Not sure what is the policy. The Scala compiler is not consistent as well.