cleaned up created timestamp creation using a file local variable for determining max level at which a created ts is inserted
cleaned up