Added all files

It basically works but I need to clean up the code quite a bit.