Added a simple method to filter log messages, and did some further tidying up of the repo