Added comments to the code, fixed braces
Improved the verbose feedback, added a socket profile to the scanning method