type references updated, fixed some typos
code format und type references, some typos