removed unnecessary code causing a compiler warning
added serialVersionUID to serializable class