Aaand it's working again. Have yet to set up the ability to change the book atributes. Also the code is ugly, needs cleanup.