Added Source

Added in the sources and made the log time safe from a buffer overflow.