From http://stackoverflow.com/questions/7905841/get-source-code-of-user-defined-class-and-functions