Refactored formatting a bit
Added comments
Added (ugly) filtering and preview panes