Added documentation, moved port to variables.js