Updated some basic functions, created an index

Some more basic functions added, index for example and test purposes,
shows the initial idea behind outputting webpages