Added closef TCS keyword

close_file support for closing files through TCS, and also changed how timestamps are written in raw_data/beam_xx (was writing zero before!)

Signed-off-by: Danny Price <dan@thetelegraphic.com>