clean lib directory and update gitignore