reformat with AS
renamed main to FlashlightActivity
cleaned up some obvious problems
made some static vars nonstatic, other minor improvements
renamed some vars