Implemented Typeof. Will start working with compatabilities

23/1/2013 all night marathon :)