Added a license file
Removing a line
Removing [avg] tag, putting core into function