fix C# style naming conventions to Java, better error messages