Cleaned / migrated code, refined OpenGraph function, additional bug fixes.