Network Rail has invested nearly £1 million in order to improve level crossings across Lincolnshire.