Added comments and edited testing of TIME variable