update to version 4.6

better comments and some fixes