Final version for Android ,tidied the code up and added beginning
comments.