- Added Library handling functions and structures

- fixed some library operations
- fixed object iconchange