Update mod_form.php

Added type for text elements
Update view.php
Update lib.php
Update lib.php
Update index.php
Merge pull request #5 from Kemmotar83/master

Fixes and other