Added core functionality
added disconnect function