Ensure that the library has been initialised before use
Added .gitignore