Split up index and main. Fixed minor error with hiding form.
Added spell fields, renamed types to elements, and changed pre-named forms to more meaningful general forms
Added some basic layout