Added tests for libraries
Added -e flag for excludes