moved examples to dir. changed Exception namespace and added exception code