Levels XML applied.

Levels xml applied and many more changes done like Settings.getInsnce()
and other updates.