intelli_plug: Refactor and update

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>