Rewriting the main Script...

Trying out a more structured approach...
Page one is already functional...