Fixed issues, added example.