Clean up code

Removes code that doesn't follow Oracle conventions, cleans up IDE
files.

Changes are untested and may result in slight instability.