added common perlin from webapi (not used yet); some formatting and missing semis;