Added methods for converting from other formats to decimal

Also Added code in MainActivity.java to allow other fields to be converted.
Note: Octal Doesn't seem accurate! Fix!