refactor rename. +bugfix; corrected the twos complement conversion sign mask