bfint

Remove useless stuff
Added type safety