Fixed a little problem and added a shared and static example.