Fixed all compile time errors and integrated minechem API namespace where needed.