code clean up, added vertical and horizontal resolution classes