Changed paths for documentation and refactored tables.js
Added more documentation
Fixed refactoring of tables