Change config writer to case-sensitiv.
Remove trailing spaces and add debugging output.
Add alpha testing.