Add test for FileMagic JavaDoc warning fixes Remove some IDE warnings Reformat code of sample application