added facebook communication and a few cleanup items