The (main) API attribute names can now also be any case. Also, ...

...Converted both if/then chains to switch statements.