Added top code to prevent direct access. Also added description at the top.