Updated code and Fritzing for Mega