Added Config Handler

renamed reference class to Ref for convience