logging

WIP Adding in system logging. If anyone has any thoughts about what they think should be logged, please let me know.