Fixed errors and added Applied Energistics Compat.