Added lots of elements from a template

Code may not work at this point, and is also badly formatted