Configured maven-resources-plugin to copy resources to proper location
during the package phase. 
Added class casting in Main.java.