Formated result. Fixed bug caused by not completing switch from int to double. Using Double.parseDouble#
Added some constructors and JavaDoc
Added JavaDoc