move loadApplications() to ApplicationInfo.java
fix some warnings