added some documentation
Fixed issue with pages not being loaded from the hash
fixed showing of errors