Changed hooklist to numerical indexing
made hooks able to return things

No permissions are checked yet