Code cleaning

Extra styles have been moved to their own stylesheet, the visual table
has been updated and cleaned, and some controlling javascript functions
have been rewritten to make working with newly inserted tables and rows
easier.