fixed a lot of bugs and added choose from library option