Reformatted code to cubex standard