addressed comments for code style and additional documentation