changed the stored procedure formatting cleaned up some of the comments