fixed most warnings, some little updates and renames, added javadoc
comments in ScanActivity