update main (convention structure) + add func snippet

func snippet to create function, function with prototype or only
prototype