Most of the Squeleton

There are still some parts missing, but I added the code as I thought we could implement it. Lewis, have a look at it, tell me what you think, we can modify everything of course, and then we should complete it