counter initial val bug fixed
array size bug and code refactory
styling improvements