itegrated reis changes and fixed some formatting issues