Major code cleanup, removed unused resources.