Feature/intern

Added intern functionality.