Updated code style and examples