added preexec to print date when executing a command and some comments for other functions