Changed some comments to C style, added new arc routines.