Merge Main class from master to namesOnly
Added end print line to branch