Sinoid, log and ln

Branch work contains all the changes.