added timer and cleaned code

added timer, cleaned unused imports, removed suppress warnings