General changes

Stuff and things
Fixed signed char error

Important fix to casting error from binary to integer