Updated code examples. Added code upgrade description to package porting.