Massive cleanup of code. A lot cleaner. HTML Code generator function is now included. USeful for endless scrolling