added maintenance key, made stage docs, truncation bugs, security key update