Changed minor implementations of width and added sample usage