write barebone comments and functions