Correcting tables creation
Styling
Comments and reducing unused or repeated variables