Removing compiler warnings
WIP: modified transfer with 'specialized'
Fixing misc warnings and adding tests.
Removed more warnings.