added theme to spinner
added json exception handling
added decimal formatting
fixed bugs