initial import
added security paragraph plus other minor improvements
added check_mode and other minor fixes