added LGPL license
updated README
added gitignore
fixed race condition
updated gitignore