Added some commenting and some more debug-messages!