implemented single page carousel view, fixed code indentation, added comments for a few functions