Changed Ptypes and removed stuff. Added types to signals and proxies and
factories. Added one check for signals in Proxy