Added JavaDoc class and function headers