Implemented sms alert functionality

There is now a bitmap to bitarray conversion function. Cleaned up some
warnings