Add bounds checks for reading melt file and increase max lines. (SF-210)