Refactoring to split up helpers, options and main class.
Added some tests for helpers and options
Added table context helper