added palantir, formatting and syntax cleanup.