Feature/issue 682 remove warnings v2.3.0

Nothing but killing warnings. Most by changing size_t to int and vice versa.