Examples removed from functions and some funcyions renamed.