Cleaned up a few things and added a hook library to lua(I don't think it
works)