space fixes
removed useless functions
new exception type for runtime type checks and catch for thread safety
type fixes
renamed member var
provoking an exception