Remove unused imports and fix online indicator (friends).

Fixes #151 (all white spaces fixed)