Removed garbage
Added new static
Added comments
Changed name and addedstyle for table
Modified templates view
Refactored main functions