project cleanup, map-reduce line parsing algorithm