updated license for this file
fixed code formatting