added some comments to main

added print_line code

added the date

deleted unused comments

added finsihing touches to print_buffer