starting fixing function compilation
got function return types
fixed bug with None type not being registered