Added hash as argument to the callback.
Reformatted changed code.
Documentation for parseHash() added