Moved parse to a function and added a time converter function
Moved table drawing to a funtion