File IO added, Functions Modified