finally finished altarcore; cleaned up dead code