Added title sections to csv files and added exception for non-integer inputs