added file header, fixed code formatting style.