Clean up code

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