     display.print("31st");
     break;
   }
-    if ((day >=4)&&(day<=20)){
+    if ((day >=4) && (day<=20))
+    {
       display.print(day);
       display.print("th");
     }
-    if ((day >=24)&&(day<=30)){
+    if ((day >=24) && (day<=30))
+    {
       display.print(day);
       display.print("th");
     }

        weakday = RTC.getDayOfWeek();
        
// weakday
      display.setFont(liberationSans_16ptFontInfo);
      display.fontColor(WHITE,BLACK);
      display.setCursor(0,40);
  switch (weakday){
    case 0:
    display.print( "Monday");
    break;

int ledPin =  13;
int INT_PIN = 3;
int int_number = 1;
// Defins Pins

DS1339 RTC = DS1339();

int displayState=0;
int buttonReleased=0;
int countdown = 0;
// Defines integers being used

void setup(void) 
{
  startAllProccesses();
  startup();
  display.setCursor(0,30);
}

void loop() 
{
  byte buttons = display.getButtons();
  
  if (buttons != 0)
  {
    displayState = 1;
    display.on();
    countdown = 90;
  	}
    if (buttons == 0) 
    {
      countdown=countdown-1;
    }
  if (countdown<=0)
  {
  display.clearWindow(0,0,0,0);
  displayState = 0;
  display.off();
}
  displayBattery();
  unsigned char second;
  unsigned char minute;
