Add clear function and pom.xml

Add function to clear SharedPreference item and pom.xml to compiled with maven.