Added site information queries. Added comments. Bug fixes