minor style changes and added decimal processing to calculator