Added comments and detailed test scripts