add line to table

1. added function to add line to table
2. cleaned up some formatting