added comments in scala file