updated examples, added install script for CentOS
refactor