added foundation, made message are scroll
moved application code into separate files