Added main, updated comments

Updated comments in header of each file.