Remove unused imports and fix online indicator (friends).

Fixes #151 (white spaces fixed)