Fixed bug with adding extra line and add sample file