added maven nature
added double checked idiom