Add library tab
Add library controls
Fix file operations in library class