File reading replaced
Some comments added