Added else if statements.
Added decimal variable type.
Bug fixes.