Added comments, improved logging UI