Improved documentation (#7).
Move scans to separate class.